#ifndef EZVOICEPLAYERDEFIN_H
#define EZVOICEPLAYERDEFIN_H

typedef enum{
    EZVoicePlayerState_stop,
    EZVoicePlayerState_plyaing,
    EZVoicePlayerState_pause,
    EZVoicePlayerState_error
}EZVoicePlayerState;

typedef enum{
    EZVoiceMediaState_noMedia,
    EZVoiceMediaState_pres,
    EZVoiceMediaState_buffs,
    EZVoiceMediaState_end,
    EZVoiceMediaState_error
}EZVoiceMediaState;

typedef enum{
    EZVoiceStatePres_start,
    EZVoiceStatePres_ing,
    EZVoiceStatePres_end
}EZVoiceMediaStatePres;

typedef enum{
    EZVoiceStateBuffs_start,
    EZVoiceStateBuffs_ing,
    EZVoiceStateBuffs_end
}EZVoiceMediaStateBuffs;

typedef enum{
    EZVoiceMediaStateError_unKnow,//不知XX情况
    EZVoiceMediaStateError_invalid //不可用
}EZVoiceMediaStateError;

typedef struct EZVoiceStateStruct{
    EZVoicePlayerState playState;
    EZVoiceMediaState mediaState;
    int subMediaState;
public:
    EZVoiceStateStruct(){
        playState=EZVoicePlayerState_stop;
        mediaState = EZVoiceMediaState_noMedia;
        subMediaState = 0;
    }
    EZVoiceStateStruct(EZVoicePlayerState playstate_,EZVoiceMediaState mediaState_,int subMediaState_){
        playState = playstate_;
        mediaState = mediaState_;
        subMediaState = subMediaState_;
    }
}EZVoiceState;

#endif // EZVOICEPLAYERDEFIN_H
